package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName biz_productrepertory
 */
@TableName(value ="biz_productrepertory")
@Data
public class BizProductrepertory implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer prorepid;

    /**
     * 
     */
    private Integer productid;

    /**
     * 
     */
    private Integer prorepcount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizProductrepertory other = (BizProductrepertory) that;
        return (this.getProrepid() == null ? other.getProrepid() == null : this.getProrepid().equals(other.getProrepid()))
            && (this.getProductid() == null ? other.getProductid() == null : this.getProductid().equals(other.getProductid()))
            && (this.getProrepcount() == null ? other.getProrepcount() == null : this.getProrepcount().equals(other.getProrepcount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProrepid() == null) ? 0 : getProrepid().hashCode());
        result = prime * result + ((getProductid() == null) ? 0 : getProductid().hashCode());
        result = prime * result + ((getProrepcount() == null) ? 0 : getProrepcount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", prorepid=").append(prorepid);
        sb.append(", productid=").append(productid);
        sb.append(", prorepcount=").append(prorepcount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}